package com.swancloud.openstack.networking.internal.ext;

import com.swancloud.api.networking.ext.TopologyService;
import com.swancloud.model.common.ActionResponse;
import com.swancloud.openstack.networking.internal.BaseNetworkingServices;

import static com.google.common.base.Preconditions.checkNotNull;

/**
 * @Author 张立强 - zhangliqiang@asiacom.net.cn
 * @Description
 * @Date 2021-01-05 13:40
 **/
public class NetTopologyServiceImpl extends BaseNetworkingServices implements TopologyService {

    @Override
    public ActionResponse getAllocatedTopology(String projectId) {
        checkNotNull(projectId);
        return get(ActionResponse.class,uri("/auto-allocated-topology/%s",projectId)).execute();
    }
}
